package com.imust.springbootproject.service;

import com.imust.springbootproject.po.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {
    public abstract Tag saveTag(Tag tag);
    public abstract Tag getTag(Long id);
    public abstract Page<Tag> listTag(Pageable pageable);
    public abstract List<Tag> listTag();
    public abstract List<Tag> listTagTop(Integer size);
    public abstract Tag updateTag(Long id, Tag tag);
    public abstract void deleteTag(Long id);
    public abstract Tag getTagByName(String name);
    public abstract List<Tag> listTag(String ids);
}
